/*  This file is a part of JJSched source code
    JJSched - Java Jabber Scheduler - a simple Jabber scheduling application
    Copyright (C) 2008 Cestmir "CZestmyr" Houska

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/> */

package czestmyr.jjsched;

/**
 * A class that serves for holding data about an event to be planned
 */
public class PlanStruct{
    /**
     * Determines, whether this event should be for a single user or for a group of more users
     */
    public boolean singleuser;

    /**
     * Timestamp in the server time, represented by the milliseconds since Jan, 1. 1970 00:00 GMT
     */
    public long timestamp;

    /**
     * Name of the user or group for whom this event shoult be planned
     */
    public String username;

    /**
     * Id of the group for which this event should be planned. 
     *
     * Is valid only if singleuser is false. In that case, it can be 0 or the group Id. In case of 0,
     * username contains the group name.
     */
    public long groupId;

    /**
     * Description of this planned event
     */
    public String description;
}
